It does take a file object not a path. Thank you for pointing out that typo. Where I have the path should be the variable you assigned the open(object) to. I have had python not close a file which meant I had to restart to make windows give up its hold on